<?php

if (!defined('access')){
	die ('Direct access Denied!');
} else {
	
?>
	<div id="register">
		<form method="post" action="index.php?page=register&function=verif">
			<label for="username">Nom d'utilisateur: </label>
			<input type="text" name="username"/>
			<label for="userpass">Mot de passe: </label>
			<input type="password" name="userpass"/>
			<label for="verifpass">Retapez le mot de passe: </label>
			<input type="password" name="verifpass"/>
			<label for="usermail">Adresse Mail: </label>
			<input type="text" name="usermail"/>
			<label>Date de naissance: </label>
			<select name="bday">
				<?php
					$d = 1;
					while ($d <= 31){ echo '<option>'.$d++.'</option>'; }
				?>
			</select>
			<select name="bmonth">
				<?php
					$m = 1;
					while ($m <= 12){ echo '<option>'.$m++.'</option>';	}
				?>
			</select>
			<select name="byear">
				<?php
					$y = date(Y)-100;
					while ($y <= date(Y)){ echo '<option>'.$y++.'</option>'; }
				?>
			</select>
			<input type="submit" value="S'inscire!"/>
		</form>
	</div>
<?php } ?>